/* eslint-disable jsdoc/no-restricted-syntax */
/**
 * @param {ng.IQService} $q
 * @returns {<T>() =>{ promise: ng.IPromise<T>; resolve: (value: T | ng.IPromise<T>) => void; reject: (reason?: any) => void;}}
 */
function WithResolvers($q) {
  return $q.defer;
}

WithResolvers.$inject = ["$q"];

export default WithResolvers;
